/*
 * Created on 2005-3-31
 *
 */
package com.hd123.rumba.impex;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author caili
 */
public class ExportCondition implements Serializable {
  private Date time;
  private String code;

  public Object clone() {
    ExportCondition ec = new ExportCondition();
    ec.setTime(getTime());
    ec.setCode(getCode());
    return ec;
  }

  public String toString() {
    StringBuffer sb = new StringBuffer(1);
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    sb.append(sdf.format(time));
    return sb.toString();
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }
  
  
  public String getCode() {
    return code;
  }
  public void setCode(String code) {
    this.code = code;
  }
}
